package com.fangzhi.mobel.io;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
public class SaveOrderIo implements Serializable {

    private String orderId;
    private Long customerId;
    private BigDecimal discountAmount;
    private List<Product> productList = new ArrayList<>();
    private PaymenyIo paymenyIo = null;
    private String imageComments;
    private Integer priceType;
    private Integer materialType;
    private Integer customerType;
    private Integer freeShippingType;
    private String comments = "";

    @Data
    public static class Product{
        private Long productTypeId;
        private String productName;
        private List<Long> technologyId = new ArrayList<>();
        private Integer num;
        private String comments;
        private Long badTypeId;
        private BigDecimal premiumPrice;
    }

    @Data
    public static class PaymenyIo{
        private BigDecimal price = BigDecimal.valueOf(0);
        private String imageCover;
        private String comments;
    }
}
